package view.panel;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class MenuLeftPanel extends JPanel {
	JTextField jfieldMenuSearch, jfieldMenuName, jfieldPrice;
	JButton jbtnSearch, jbtnNewMenu,jbtnDelMenu,jbtnSaveMenu;

	JLabel jlabelMenuName, jlabelPrice;


	public MenuLeftPanel() {

		setLayout(new FlowLayout(FlowLayout.LEFT, 10, 30));
		setSize(300,200);
		setVisible(true);
		
		jbtnSearch = new JButton("메뉴 검색");
		jbtnNewMenu = new JButton("새 메뉴");
		jbtnDelMenu = new JButton("삭제");
		jbtnSaveMenu = new JButton("저장");

		jlabelMenuName = new JLabel("메뉴명");
		jlabelPrice = new JLabel("가격");
		
		jfieldMenuSearch = new JTextField(8);
		jfieldMenuName = new JTextField(8);
		jfieldPrice = new JTextField(8);

		add(jfieldMenuSearch);
		add(jbtnSearch);
		add(jlabelMenuName);
		add(jfieldMenuName);
		add(jlabelPrice);
		add(jfieldPrice);
		add(jbtnNewMenu);
		add(jbtnDelMenu);
		add(jbtnSaveMenu);
		
	}
}
